package com.xhs.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @desc: 标签实体类。
 * @projectName: spring-boot-demo
 * @author: xhs
 * @date: 2024-12-16 周一 9:55
 * @version: JDK 1.8
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "tags")
public class TagsEntity implements Serializable {

    /**
     * 主键
     */
    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 标签（JSON 数组）
     */
    private String tags;
}
